import request from "../utils/request"

export const getMonthCartListAPI = (params) => request.get('/parking/card/list', { params })
export const getMonthCartshareAPI = () => request.get('/parking/card/proportion')
export const delMonthCartAPI = (ids) => request.delete(`/parking/card/${ids}`)
export const addMonthCartAPI = (data) => request.post('/parking/card', data)
export const editMonthCartAPI = (data) => request.put('/parking/card/edit', data)
export const payMonthCartAPI = (data) => request.post('/parking/card/recharge', data)
export const getMonthCartDetailAPI = (id) => request.get(`/parking/card/detail/${id}`)
export const getMonthCartParkDetailAPI = (id) => request.get(`/parking/card/${id}`)
export const getPaymentDataAPI = (params) => request.get('/parking/payment/list', {params})
